using System.Runtime.Serialization;

namespace IppServer.Host.Configuration
{
    [DataContract]
    internal sealed class TcpPrinterTask
    {
        [DataMember(Order = 0)]
        public string PrinterName { get; set; } = string.Empty;

        [DataMember(Order = 1)]
        public int Port { get; set; } = 9100;

        [DataMember(Order = 2)]
        public string PrintMode { get; set; } = "自动";

        public override string ToString()
        {
            return $"{PrinterName}@{Port} ({PrintMode})";
        }
    }
}

